﻿using DosTexPrj.Core.Models;
using FluentNHibernate.Mapping;

namespace DosTexPrj.Implement.NHibernate.Mapping
{
    public class CompositionMapping : ClassMap<Composition>
    {
        public CompositionMapping()
        {
            Table("Compositions");
            Id(x => x.Id, "CompositionID").UnsavedValue(0).GeneratedBy.Identity();
            Map(x => x.CompostionName, "CompostionName").Not.Nullable().Length(200);
        }
    }
}